﻿@inject IDataCacheService _dataCacheService


<CnGalWebSite.Components.Containers.MasaTitleContainer Title="基本信息" Icon="@IconType.Infor.ToIconString()" Collapable Class="@Class">
     <MRow>
         <MCol Cols="12" Md="6" Lg="3">
             <CnGalWebSite.Components.Images.UploadButton ShowCropper @bind-ImagePath="@Model.MainImage" Text="上传主图" Type="ImageAspectType._16_9" Class="mb-4"/>
         </MCol>
         <MCol Cols="12" Md="6">
             <MTextField @bind-Value="Model.Name" Label="唯一名称" />
         </MCol>
         <MCol Cols="12">
             <MTextarea Rows="3" @bind-Value="Model.BriefIntroduction" Label="简介" />
         </MCol>
         <MCol Cols="12" Md="4">
             <MCheckbox @bind-Value="Model.ShowPublicly" Label="公开" TValue="bool" />
         </MCol>
         <MCol Cols="12" Md="4">
             <MCheckbox @bind-Value="Model.IsHidden" Label="不展示在个人主页中" TValue="bool" />
         </MCol>
         <MCol Cols="12" Md="4">
             <MCheckbox @bind-Value="Model.IsDefault" Label="默认收藏夹" TValue="bool" />
         </MCol>
     </MRow>
</CnGalWebSite.Components.Containers.MasaTitleContainer>

@code {
    [Parameter]
    public EditFavoriteFolderViewModel Model { get; set; } = new EditFavoriteFolderViewModel();
    [Parameter]
    public string Class { get; set; }

    protected override async Task OnInitializedAsync()
    {


    }
}
